package com.dao;

import java.util.List;

import com.model.Customer;

public interface CustomerDAO {
	// add customer
	public boolean addCustomer(Customer customer);

	// delete customer
	public boolean deleteCustomer(int id);

	// update customer
	public boolean updateCustomer(Customer customer, int id);

	// select customer
	public List<?> selectCustomer(String key, String type, int page, int rows,
			String sort, String order);

	// get customer
	public <T> Customer getCustomer(T o);

	// 获取customer对象数量
	public int getTotal();

	// 获取查询到的customer对象数量
	public int getLikeTotal(String key, String type);

}
